/**
 * 
 */
package com.rd.sys.dto.commmon.enums;

import baseproj.common.constants.BaseEnum;
import baseproj.inter.Message;

/**
 * @author
 */
public class CommonEnum {
    /**
     * 门户通信通用响应结果枚举类
     */
    public enum MsgRspResult implements BaseEnum {
        //
        SUCCESS("0", Message.getMessage("common.log.success")),
        //
        FAILURE("1", Message.getMessage("common.log.fail"));

        /** The code. */
        public String code;

        /** The name. */
        public String name;

        /**
         * Instantiates a new node type.
         * 
         * @param code
         *            the code
         * @param name
         *            the name
         */
        MsgRspResult(String code, String name) {
            this.code = code;
            this.name = name;
        }

        /**
         * Equals.
         * 
         * @param value
         *            the value
         * @return true, if successful
         * @version
         */
        public boolean equals(String value) {
            return this.code.equals(value);
        }

        /**
         * Gets the code.
         * 
         * @return the code
         */
        @Override
        public String getCode() {
            return code;
        }

        /**
         * Gets the name.
         * 
         * @return the name
         */
        @Override
        public String getName() {
            return name;
        }
    }
}
